const fs = require('fs');
const promisify = require('util').promisify;

let file = fs.readFileSync('../package.json', 'UTF-8');

console.log(file);

(async function () {
    let readFile = promisify(fs.readFile);
    let res = await readFile('../package.json', 'UTF-8');
    console.log(res);
})();